//
//  ProfileViewArticleCell.swift
//  iModern
//
//  Created by Ralf on 5/14/15.
//  Copyright (c) 2015 com.starlooking. All rights reserved.
//

import UIKit

class ProfileViewArticleCell: ArticleCell
{
    override func awakeFromNib()
    {
        super.awakeFromNib()

    }

    func setData(data: NSMutableDictionary)
    {
        let article = data["article"] as! NSMutableDictionary
        let contact = article["contact"] as! NSDictionary

        setAliasLabel(contact["alias"] as! String)
        setNumberOfFavoritesButton(String(article["numberOfFavorites"] as! Int))
        setNumberOfCommentsButton(String(article["numberOfComment"] as! Int))
        setAvatarImageView(contact["thumbnailURL"] as? String)
        setPreviewImageView(article["imageURL"] as! String)
    }

    override func setSelected(selected: Bool, animated: Bool)
    {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
}
